const commonPage = {
  template: 'public/index.html',
  title: '泳安30',
}

const pageConfig = {
  // home
  home: {
    entry: 'src/views/home/main.js',
    filename: 'home.html',
    ...commonPage,
    output: {
      filename: './js/home.js',
    },
  },
  // 场馆
  site: {
    entry: 'src/views/site/main.js',
    filename: 'site.html',
    ...commonPage,
    output: {
      filename: './js/site.js',
    },
  },
  // 场馆-泳票详情
  siteTitckDetail: {
    entry: 'src/views/siteTitckDetail/main.js',
    filename: 'siteTitckDetail.html',
    ...commonPage,
    output: {
      filename: './js/siteTitckDetail.js',
    },
  },
  // 消息
  message: {
    entry: 'src/views/message/main.js',
    filename: 'message.html',
    ...commonPage,
    output: {
      filename: './js/message.js',
    },
  },
  // 我的
  my: {
    entry: 'src/views/my/main.js',
    filename: 'my.html',
    ...commonPage,
    output: {
      filename: './js/my.js',
    },
  },
  //  // 我的-关于我们
  //  aboutUs: {
  //   entry: 'src/views/my/main.js',
  //   filename: 'my.html',
  //   ...commonPage,
  //   output: {
  //     filename: './js/my.js',
  //   },
  // },
  // 个人中心
  myInfo: {
    entry: 'src/views/myInfo/main.js',
    filename: 'myInfo.html',
    ...commonPage,
    output: {
      filename: './js/myInfo.js',
    },
  },
  // 我的泳票
  mySwimTicket: {
    entry: 'src/views/mySwimTicket/main.js',
    filename: 'mySwimTicket.html',
    ...commonPage,
    output: {
      filename: './js/mySwimTicket.js',
    },
  },
  // 我的订单
  myOrder: {
    entry: 'src/views/myOrder/main.js',
    filename: 'myOrder.html',
    ...commonPage,
    output: {
      filename: './js/myOrder.js',
    },
  },
  // 我的群组
  myGroup: {
    entry: 'src/views/myGroup/main.js',
    filename: 'myGroup.html',
    ...commonPage,
    output: {
      filename: './js/myGroup.js',
    },
  },
  // 携行用户
  carryUserList: {
    entry: 'src/views/carryUserList/main.js',
    filename: 'carryUserList.html',
    ...commonPage,
    output: {
      filename: './js/carryUserList.js',
    },
  },
  // 携行用户-详情
  carryUserDetail: {
    entry: 'src/views/carryUserDetail/main.js',
    filename: 'carryUserDetail.html',
    ...commonPage,
    output: {
      filename: './js/carryUserDetail.js',
    },
  },
  // 携行用户-注册
  carryUserRegister: {
    entry: 'src/views/carryUserRegister/main.js',
    filename: 'carryUserRegister.html',
    ...commonPage,
    output: {
      filename: './js/carryUserRegister.js',
    },
  },
  // 入场记录
  entryRecord: {
    entry: 'src/views/entryRecord/main.js',
    filename: 'entryRecord.html',
    ...commonPage,
    output: {
      filename: './js/entryRecord.js',
    },
  },
  // 隐私政策
  privacyPolicy: {
    entry: 'src/views/privacyPolicy/main.js',
    filename: 'privacyPolicy.html',
    ...commonPage,
    output: {
      filename: './js/privacyPolicy.js',
    },
  },
  // 用户协议
  userAgreement: {
    entry: 'src/views/userAgreement/main.js',
    filename: 'userAgreement.html',
    ...commonPage,
    output: {
      filename: './js/userAgreement.js',
    },
  },
}

module.exports = pageConfig
